import { RouteRecordRaw, RouterView } from 'vue-router'

const routes: RouteRecordRaw = {
  path: 'system',
  component: RouterView,
  children: [
    {
      path: 'dynamic',
      name: 'Dynamic',
      component: () => import('@/views/System/Dynamic/index.vue'),
      meta: {
        title: '系统>动态管理'
      }
    },
    {
      path: 'param',
      name: 'Param',
      component: () => import('@/views/System/Param/index.vue'),
      meta: {
        title: '系统>参数管理'
      }
    },
    {
      path: 'log/login',
      name: 'LogLogin',
      component: () => import('@/views/System/Log/Login/index.vue'),
      meta: {
        title: '系统>登录日志'
      }
    },
    {
      path: 'log/operation',
      name: 'LogOperation',
      component: () => import('@/views/System/Log/Operation/index.vue'),
      meta: {
        title: '系统>操作日志'
      }
    },
    {
      path: 'picture',
      name: 'picture',
      component: () => import('@/views/System/Picture/index.vue'),
      meta: {
        title: '系统>图片管理'
      }
    }
  ]
}

export default routes